package com.ys.web.user.friends.po;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * @author quxinjun
 * @version 1.0.0
 * @ClassName BaseGroupInfo.java
 * @Description 群组基础信息
 * @createTime 2021年05月13日 19:41:00
 */
@Data
@Accessors(chain = true)
@Table(name = "group_info")
public class BaseGroupInfoPO {

    /**
     * 主键id
     */
    @Id
    public Long id;

    /**
     * 群名称
     */
    public String name;

    /**
     * 群图片
     */
    public String pic;

    /**
     * 群主id
     */
    public String userId;

    /**
     * 状态【false：删除，true：启用】
     */
    public Boolean status;

    /**
     * 群公告
     */
    public String notice;

    /**
     * 创建时间
     */
    public String createTime;

    /**
     * 是否需要审核
     */
    public Boolean isAudit;

    /**
     * 是否开启全员禁言
     */
    public Boolean isBanned;

    /**
     * 消息免打扰
     */
    @Transient
    public Boolean disturb;

    /**
     * 是否开启成员保护
     */
    public Boolean isMemberProtect;

    /**
     * 清理设置的code
     */
    public Integer clearSetCode;

    /**
     * 清理设置的时间
     */
    public Long clearSetTime;

    /**
     * 截屏通知
     */
    public Boolean isScreenNotice;

    /**
     * 广告拦截
     */
    public Boolean isAdvertIntercept;

    /**
     * 成员人数
     */
    @Transient
    public Integer memberSize;

    @Transient
    public Boolean isJoin;

    public Boolean isFreeze;

    public Integer gradCount;

    public Integer gradTime;

    /**
     * 全员抢红包
     */
    public Boolean isGradAll;

    /**
     * 最大人数
     */
    public Integer maxPerson;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Boolean getIsAudit() {
        return isAudit;
    }

    public void setIsAudit(Boolean audit) {
        isAudit = audit;
    }

    public Boolean getIsBanned() {
        return isBanned;
    }

    public void setIsBanned(Boolean banned) {
        isBanned = banned;
    }

    public Boolean getDisturb() {
        return disturb;
    }

    public void setDisturb(Boolean disturb) {
        this.disturb = disturb;
    }

    public Boolean getIsMemberProtect() {
        return isMemberProtect;
    }

    public void setIsMemberProtect(Boolean memberProtect) {
        isMemberProtect = memberProtect;
    }

    public Integer getClearSetCode() {
        return clearSetCode;
    }

    public void setClearSetCode(Integer clearSetCode) {
        this.clearSetCode = clearSetCode;
    }

    public Long getClearSetTime() {
        return clearSetTime;
    }

    public void setClearSetTime(Long clearSetTime) {
        this.clearSetTime = clearSetTime;
    }

    public Boolean getIsScreenNotice() {
        return isScreenNotice;
    }

    public void setIsScreenNotice(Boolean screenNotice) {
        isScreenNotice = screenNotice;
    }

    public Boolean getIsAdvertIntercept() {
        return isAdvertIntercept;
    }

    public void setIsAdvertIntercept(Boolean advertIntercept) {
        isAdvertIntercept = advertIntercept;
    }

    public Integer getMemberSize() {
        return memberSize;
    }

    public void setMemberSize(Integer memberSize) {
        this.memberSize = memberSize;
    }

    public Boolean getIsJoin() {
        return isJoin;
    }

    public void setIsJoin(Boolean join) {
        isJoin = join;
    }

    public Boolean getIsFreeze() {
        return isFreeze;
    }

    public void setIsFreeze(Boolean freeze) {
        isFreeze = freeze;
    }

    public Integer getGradCount() {
        return gradCount;
    }

    public void setGradCount(Integer gradCount) {
        this.gradCount = gradCount;
    }

    public Integer getGradTime() {
        return gradTime;
    }

    public void setGradTime(Integer gradTime) {
        this.gradTime = gradTime;
    }

    public Boolean getIsGradAll() {
        return isGradAll;
    }

    public void setIsGradAll(Boolean gradAll) {
        isGradAll = gradAll;
    }

    public Integer getMaxPerson() {
        return maxPerson;
    }

    public void setMaxPerson(Integer maxPerson) {
        this.maxPerson = maxPerson;
    }
}
